<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>智能数据每日报告</title>
</head>

<style type="text/css">
* {
	font-size: 11px;
}
#table1 {
	border: 1px solid rgb(153, 187, 232);
}
#table1 #table_head {
	background: #B0C9E7; height: 25px; text-align: left; line-height: 25px; text-indent: 20px; font-weight: bolder;
}
#table1 #table_con {
	background: rgb(223, 232, 246);
}
#table1 #table_in {
	background: rgb(208, 208, 208); border: 0px currentColor; margin-top: 5px; margin-bottom: 5px;
}
#table1 #table_in th {
	background: #F0F1F3; height: 22px; border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; align: center;
}
#table1 #table_in .td1 {
	background: #F0F1F3; height: 22px; text-align: center;border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; align: center;
}
#table1 #table_in td {
	height: 22px; text-align: center; line-height: 22px; border-bottom-color: rgb(237, 237, 237); border-bottom-width: 1px; border-bottom-style: solid;
}
.tdbg10 {
	background: rgb(238, 239, 241);
}
.tdbg11 {
	background: rgb(255, 255, 255);
}
</style>
<body>

#if($allList)
<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
	   <tr>
            <td id="table_head">智能总体数据</td>
       </tr>
	   <tr>
        <td id="table_con" valign="top">
            <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
				<tr>
					<th>类别</th>
                    <th>总收入($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>现金收入($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>消耗客户数($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>ARPU($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>CPC($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>CTR($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
				</tr>
				#foreach($all in $allList)
                <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
				   <td class="td1" >$!{all.weidu}</td>
                   <td align="center" >$tools.xsd($!{all.incomeToday})</td>
    			   <td>$tools.compRate($!{all.incomeToday},$!{all.incomeLastDay})%</font></td>
    			   <td>$tools.compRate($!{all.incomeToday},$!{all.incomeLastWeek})%</font></td>
				
				   <td align="center" >$tools.xsd($!{all.cashAmountToday})</td>
    			   <td>$tools.compRate($!{all.cashAmountToday},$!{all.cashAmountLastDay})%</font></td>
    			   <td>$tools.compRate($!{all.cashAmountToday},$!{all.cashAmountLastWeek})%</font></td>
				
				   <td align="center" >$!{all.costCusToday}</td>
    			   <td>$tools.compRate($!{all.costCusToday},$!{all.costCusLastDay})%</font></td>
    			   <td>$tools.compRate($!{all.costCusToday},$!{all.costCusLastWeek})%</font></td>
				
				   <td align="center" >$tools.xsd($!{all.ARPUToday})</td>
    			   <td>$tools.compRate($!{all.ARPUToday},$!{all.ARPULastDay})%</font></td>
    			   <td>$tools.compRate($!{all.ARPUToday},$!{all.ARPULastWeek})%</font></td>
				
				   <td align="center" >$tools.xsd($!{all.CPCToday})</td>
    			   <td>$tools.compRate($!{all.CPCToday},$!{all.CPCLastDay})%</font></td>
    			   <td>$tools.compRate($!{all.CPCToday},$!{all.CPCLastWeek})%</font></td>
				
				   <td align="center" >$tools.tranRateTwo($!{all.CTRToday})</td>
    			   <td>$tools.compRate($!{all.CTRToday},$!{all.CTRLastDay})%</font></td>
    			   <td>$tools.compRate($!{all.CTRToday},$!{all.CTRLastWeek})%</font></td>
                </tr>
				#end
 			</table>
        </td>
       </tr>
</table>
#end
</br>
</br>
</br>


#if($kpiMap)
<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
	   <tr>
            <td id="table_head">KPI完成进度数据</td>
       </tr>
	   <tr>
        <td id="table_con" valign="top">
            <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
				<tr>
					<th>产品线</th>
                    <th>截止$!{nowDate}本月实际总收入</th>
                    <th>本月目标收入</th>
                    <th>实际进度</th>
					<th>目标进度</th>
					<th>完成剩余任务需每日达成收入</th>
				</tr>
				#foreach($temp in $kpiProcutList)
				#set($product = $temp.split('&')[0])	
				#set($kpi = $kpiMap.get($product))
				
                <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
				   <td class="td1" >$!{product}</td>
                   <td align="center" >$tools.qfw($!{kpi.monthSumIncome})</td>
				   <td align="center" >$tools.qfw($!{kpi.idkpi})</td>
				   <td align="center" >$tools.tranRateTwo($!{kpi.hasDoneProgress})</td>
				   <td align="center" >$tools.tranRateTwo($!{kpi.tragetProgress})</td>
				   <td align="center" >$tools.qfw($!{kpi.laveDayIncom})</td>
                </tr>
				#end
 			</table>
        </td>
       </tr>
</table>
</br>
</br>
</br>
#end



#if($detailList)
    	<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
    		<tr>
    			<td id="table_head">智能总体详细数据</td>
    		</tr>
    	   <tr>
            <td id="table_con" valign="top">
                <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
              <tr>
                <th>指标</th>
                <th>昨天($nowDate)</th>
                <th>前天($lastDate)</th>
                <th>环比</th>
                <th>上周($lastWeek)</th>
                <th>周同比</th>
              </tr>
              
            	#foreach($rs in $detailList)
            		#set($values = $rs.split(';'))	
            		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
            			<td class="td1">$values[0]</td>
            			<td>$values[1]</td>
            			<td>$values[2]</td>
            			<td>$values[3]%</font></td>
            			<td>$values[4]</td>
            			<td>$values[5]%</font></td>
              		</tr>
            	#end
        	     </table>
     	       </td>
     	   </tr>
    	</table>
#end

</br>
</br>
</br>
#if($cityAllList)
<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
	   <tr>
            <td id="table_head">总体重点城市数据</td>
       </tr>
	   <tr>
        <td id="table_con" valign="top">
            <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
				<tr>
					<th rowspan="2">日期</th>
                    <th colspan="5">北京</th>
                    <th colspan="5">上海</th>
                    <th colspan="5">深圳</th>
					<th colspan="5">广州</th>
                    <th colspan="5">天津</th>
                    <th colspan="5">成都</th>
				</tr>
				<tr>
					#foreach($a in [0..5])
                        <th>收入</th>
                        <th>客户数</th>
    					<th>点击</th>
                        <th>CPC</th>
    					<th>CTR</th>
					#end
				</tr>
				#foreach($cityall in $cityAllList)
                <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
				   <td class="td1" >$!{cityall.statDate}</td>
				   #foreach($value in $cityall.show)
                   <td align="center" >$!{value}</td>
				   #end
                </tr>
				#end
 			</table>
        </td>
       </tr>
</table>
#end

</br>
</br>
</br>


#if($serviceCityDataMap)
	#foreach($serviceName in $serviceLineList)
		#set($cityDatas = $serviceCityDataMap.get($serviceName))
		#set($cates = $serviceCityCatesMap.get($serviceName))
		<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
    	   <tr>
                <td id="table_head">$!{serviceName}频道-重点城市&品类数据</td>
           </tr>
    	   <tr>
            <td id="table_con" valign="top">
                <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
    				<tr>
    					<th rowspan="2">主要城市</th>
    					#foreach($cate in $cates)
    						<th colspan="5">$cate</th>
    					#end
    				</tr>
    				<tr>
    					#foreach($a in [1..$cates.size()])
                            <th>收入</th>
                            <th>客户数</th>
        					<th>点击</th>
                            <th>CPC</th>
        					<th>CTR</th>
    					#end
    				</tr>
    				#foreach($city in $cityDatas)
                    <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
    				   <td align="center" >$!{city.city}</td>
    				   #foreach($value in $city.show)
                       <td align="center" >$!{value}</td>
    				   #end
                    </tr>
    				#end
     			</table>
            </td>
           </tr>
		</table>
		</br>
		</br>
		</br>
	#end
#end


</body>
</html>
